<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户注册</title>
<script language="JavaScript" src="scripts/jquery.js"></script>
<script language="JavaScript" src="scripts/jquery.corner.js"></script>
<script language="JavaScript" src="scripts/jVal.js"></script>

<link rel="stylesheet" type="text/css" href="css/jVal.css">
<style>
body {
	font-family: Tahoma;
	font-size: 12pt;
}
</style>
</head>
<body>
	<form name="form" action="Register" method="post">
		<table border=0 id="formContainer1" style="padding: 10px;">
			<tr>
				<td align=right style="padding-right: 5px; color: #000;">
					账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</td>
				<td align=left style="padding: 5px; color: #000;"><input
					id="f1" type=text size=20 name="account"
					jVal="{valid:/^[a-zA-Z0-9]{3,10}$/, message:'字母或数字(3,10)', styleType:'cover'}"></td>
			</tr>
			<tr>
				<td align=right style="padding-right: 5px; color: #000;">
					密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
				<td align=left style="padding: 5px; color: #000;"><input
					id="f3" type=text size=20 maxlength=10 name="password"
					jVal="{valid:/^[a-zA-Z0-9]{6,10}$/, message:'字母或数字(6,10)', styleType:'cover'}"></td>
			</tr>
			<tr>
				<td align=right style="padding-right: 5px; color: #000;">重复密码：<br>
				<td align=left style="padding: 5px; color: #000;"><input
					id="f5" type=text maxlength=10 size=20
					jVal="{valid:function (val) {if (val.length > 0 || val == document.getElementById('f3').value){ return true; }else return false; }, message:'两次输入的密码不一致', styleType:'cover'}"></td>
			</tr>
			<tr>
				<td><input type=button value="注册" style='cursor:pointer;'
					onClick="if ( $('#formContainer1').jVal() ) document.form.submit();"></td>
				<td><input type=reset value="重置" style='cursor:pointer;'
					onClick="document.form.reset();"></td>
			</tr>
		</table>
	</form>
</body>
</html>
